
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module Colour</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>Colour</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/Volumes/home/jmacey/teaching/Python/CDE/Code2013/Classes/Colour.py">/Volumes/home/jmacey/teaching/Python/CDE/Code2013/Classes/Colour.py</a></font></td></tr></table>
    <p></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="Colour.html#Colour">Colour</a>
</font></dt></dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="Colour">class <strong>Colour</strong></a></font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>a&nbsp;very&nbsp;simple&nbsp;colour&nbsp;container<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="Colour-__init__"><strong>__init__</strong></a>(self, r<font color="#909090">=0.0</font>, g<font color="#909090">=0.0</font>, b<font color="#909090">=0.0</font>, a<font color="#909090">=1.0</font>)</dt><dd><tt>constructor&nbsp;to&nbsp;set&nbsp;default&nbsp;values</tt></dd></dl>

<dl><dt><a name="Colour-debugprint"><strong>debugprint</strong></a>(self)</dt><dd><tt>method&nbsp;to&nbsp;print&nbsp;out&nbsp;the&nbsp;colour&nbsp;data&nbsp;for&nbsp;debug</tt></dd></dl>

<dl><dt><a name="Colour-mix"><strong>mix</strong></a>(self, colour, t)</dt><dd><tt>method&nbsp;to&nbsp;mix&nbsp;current&nbsp;colour&nbsp;with&nbsp;another&nbsp;by&nbsp;t<br>
will&nbsp;catch&nbsp;the&nbsp;attribute&nbsp;error&nbsp;and&nbsp;pass&nbsp;back&nbsp;black&nbsp;if<br>
wrong&nbsp;values&nbsp;are&nbsp;passed</tt></dd></dl>

</td></tr></table></td></tr></table>
</body></html>